package app.common.dao;
import java.util.ArrayList;
import java.util.List;
import cn.lily.com.container.data.Record;
import cn.lily.com.exception.YaconException;
import cn.lily.esb.framework.drivers.db.bean.ControlDAO;
public class Leo_disk_infoBean extends ControlDAO implements Cloneable {
	private static final long serialVersionUID = 1L;
	public Leo_disk_infoBean() throws YaconException {
		super();
		setTableName("LEO_DISK_INFO");
	}
	String  fdisk_typ;
	String  fdisk_color;
	String  fdisk_id;
	String  fdisk_size;
	String  fdisk_nam;
	String  fdisk_active_use;
	String  fdisk_active_size;
	String  fdisk_persent;
	String  fdisk_use_size;
	String  fdisk_free_size;
	String  fdisk_status;

	public void setDisk_typ( String disk_typ)throws YaconException{
		setFieldData("disk_typ",disk_typ,TEXT);
		this.fdisk_typ=disk_typ;
	}

	public String getDisk_typ(){
		if ( this.fdisk_typ == null){
			return "";
		}
		else {
			return this.fdisk_typ;
		}
	}

	public void setDisk_color( String disk_color)throws YaconException{
		setFieldData("disk_color",disk_color,TEXT);
		this.fdisk_color=disk_color;
	}

	public String getDisk_color(){
		if ( this.fdisk_color == null){
			return "";
		}
		else {
			return this.fdisk_color;
		}
	}

	public void setDisk_id( String disk_id)throws YaconException{
		setFieldData("disk_id",disk_id,TEXT);
		this.fdisk_id=disk_id;
	}

	public String getDisk_id(){
		if ( this.fdisk_id == null){
			return "";
		}
		else {
			return this.fdisk_id;
		}
	}

	public void setDisk_size( String disk_size)throws YaconException{
		setFieldData("disk_size",disk_size,TEXT);
		this.fdisk_size=disk_size;
	}

	public String getDisk_size(){
		if ( this.fdisk_size == null){
			return "";
		}
		else {
			return this.fdisk_size;
		}
	}

	public void setDisk_nam( String disk_nam)throws YaconException{
		setFieldData("disk_nam",disk_nam,TEXT);
		this.fdisk_nam=disk_nam;
	}

	public String getDisk_nam(){
		if ( this.fdisk_nam == null){
			return "";
		}
		else {
			return this.fdisk_nam;
		}
	}

	public void setDisk_active_use( String disk_active_use)throws YaconException{
		setFieldData("disk_active_use",disk_active_use,TEXT);
		this.fdisk_active_use=disk_active_use;
	}

	public String getDisk_active_use(){
		if ( this.fdisk_active_use == null){
			return "";
		}
		else {
			return this.fdisk_active_use;
		}
	}

	public void setDisk_active_size( String disk_active_size)throws YaconException{
		setFieldData("disk_active_size",disk_active_size,TEXT);
		this.fdisk_active_size=disk_active_size;
	}

	public String getDisk_active_size(){
		if ( this.fdisk_active_size == null){
			return "";
		}
		else {
			return this.fdisk_active_size;
		}
	}

	public void setDisk_persent( String disk_persent)throws YaconException{
		setFieldData("disk_persent",disk_persent,TEXT);
		this.fdisk_persent=disk_persent;
	}

	public String getDisk_persent(){
		if ( this.fdisk_persent == null){
			return "";
		}
		else {
			return this.fdisk_persent;
		}
	}

	public void setDisk_use_size( String disk_use_size)throws YaconException{
		setFieldData("disk_use_size",disk_use_size,TEXT);
		this.fdisk_use_size=disk_use_size;
	}

	public String getDisk_use_size(){
		if ( this.fdisk_use_size == null){
			return "";
		}
		else {
			return this.fdisk_use_size;
		}
	}

	public void setDisk_free_size( String disk_free_size)throws YaconException{
		setFieldData("disk_free_size",disk_free_size,TEXT);
		this.fdisk_free_size=disk_free_size;
	}

	public String getDisk_free_size(){
		if ( this.fdisk_free_size == null){
			return "";
		}
		else {
			return this.fdisk_free_size;
		}
	}

	public void setDisk_status( String disk_status)throws YaconException{
		setFieldData("disk_status",disk_status,TEXT);
		this.fdisk_status=disk_status;
	}

	public String getDisk_status(){
		if ( this.fdisk_status == null){
			return "";
		}
		else {
			return this.fdisk_status;
		}
	}

	public  List<Leo_disk_infoBean> findListBeans(String sSqlWhere)throws YaconException {
		List<Leo_disk_infoBean> listBeans = new ArrayList<Leo_disk_infoBean>();
		findTable = findTableByWhere(sSqlWhere);
		while (findTable.next())
		{
			Leo_disk_infoBean fDaoBean  = new Leo_disk_infoBean();
			fDaoBean.fdisk_typ = findTable.getString("disk_typ");
			fDaoBean.fdisk_color = findTable.getString("disk_color");
			fDaoBean.fdisk_id = findTable.getString("disk_id");
			fDaoBean.fdisk_size = findTable.getString("disk_size");
			fDaoBean.fdisk_nam = findTable.getString("disk_nam");
			fDaoBean.fdisk_active_use = findTable.getString("disk_active_use");
			fDaoBean.fdisk_active_size = findTable.getString("disk_active_size");
			fDaoBean.fdisk_persent = findTable.getString("disk_persent");
			fDaoBean.fdisk_use_size = findTable.getString("disk_use_size");
			fDaoBean.fdisk_free_size = findTable.getString("disk_free_size");
			fDaoBean.fdisk_status = findTable.getString("disk_status");
			fDaoBean.operate_mode = "edit";
			listBeans.add(fDaoBean);
		}
		return listBeans;
	}

	public Leo_disk_infoBean findBean(String sSqlWhere)throws YaconException {
		findTable = findTableByWhere(sSqlWhere);
		if (findTable.next())
		{
			Leo_disk_infoBean fDaoBean  = new Leo_disk_infoBean();
			fDaoBean.fdisk_typ = findTable.getString("disk_typ");
			fDaoBean.fdisk_color = findTable.getString("disk_color");
			fDaoBean.fdisk_id = findTable.getString("disk_id");
			fDaoBean.fdisk_size = findTable.getString("disk_size");
			fDaoBean.fdisk_nam = findTable.getString("disk_nam");
			fDaoBean.fdisk_active_use = findTable.getString("disk_active_use");
			fDaoBean.fdisk_active_size = findTable.getString("disk_active_size");
			fDaoBean.fdisk_persent = findTable.getString("disk_persent");
			fDaoBean.fdisk_use_size = findTable.getString("disk_use_size");
			fDaoBean.fdisk_free_size = findTable.getString("disk_free_size");
			fDaoBean.fdisk_status = findTable.getString("disk_status");
			fDaoBean.operate_mode = "edit";
			return fDaoBean;
		}else
			return null;
	}

	public void setViewRecord(Record viewRecord) throws YaconException{
		if (viewRecord.getString("disk_typ") != null)
			setDisk_typ(viewRecord.getString("disk_typ"));
		if (viewRecord.getString("disk_color") != null)
			setDisk_color(viewRecord.getString("disk_color"));
		if (viewRecord.getString("disk_id") != null)
			setDisk_id(viewRecord.getString("disk_id"));
		if (viewRecord.getString("disk_size") != null)
			setDisk_size(viewRecord.getString("disk_size"));
		if (viewRecord.getString("disk_nam") != null)
			setDisk_nam(viewRecord.getString("disk_nam"));
		if (viewRecord.getString("disk_active_use") != null)
			setDisk_active_use(viewRecord.getString("disk_active_use"));
		if (viewRecord.getString("disk_active_size") != null)
			setDisk_active_size(viewRecord.getString("disk_active_size"));
		if (viewRecord.getString("disk_persent") != null)
			setDisk_persent(viewRecord.getString("disk_persent"));
		if (viewRecord.getString("disk_use_size") != null)
			setDisk_use_size(viewRecord.getString("disk_use_size"));
		if (viewRecord.getString("disk_free_size") != null)
			setDisk_free_size(viewRecord.getString("disk_free_size"));
		if (viewRecord.getString("disk_status") != null)
			setDisk_status(viewRecord.getString("disk_status"));
	}

}
